package com.example.demo2.mapper;

import com.example.demo2.pojo.data.AdminDO;
import com.example.demo2.pojo.vo.AdminVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/** 
 * <br/>
 * Created by weidong on 2020/05/01
 */
@Repository
public interface AdminMapper {
    Integer add(AdminVO adminVO);

    Integer updateById(AdminVO adminVO);

    AdminDO findById(Integer id);

    List<AdminDO> list(AdminVO adminVO);

    List<AdminDO> listPage(AdminVO adminVO);

    Integer count(AdminVO adminVO);

    Integer deleteById(Integer id);
    AdminDO queryUserByName(String username);

}